package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductColorMapper;
import com.hcb.micro.dto.ProductColor;
import com.hcb.micro.service.IProductColorService;

@Service("ProductColorService")
public class ProductColorServiceImpl implements IProductColorService {

	@Autowired
	ProductColorMapper ProductColorMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return ProductColorMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductColor record) {
		return ProductColorMapper.insert(record);
	}

	@Override
	public int insertSelective(ProductColor record) {
		return ProductColorMapper.insertSelective(record);
	}

	@Override
	public ProductColor selectByPrimaryKey(Integer id) {
		return ProductColorMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductColor record) {
		return ProductColorMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ProductColor record) {
		return ProductColorMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ProductColor> selectByPara(Map<String, Object> para) {
		return ProductColorMapper.selectByPara(para);
	}

}
